<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 16:07
 */

namespace USER;
class common_user
{
    static protected $user_num;

    function __construct()
    {
        self::$user_num++;
        echo '<br/>';
        echo '---------------------------------开始-------------------------------------';
        echo '<br/>';
    }
    function register(){
        echo '注册';
        echo '<br/>';
    }
    function login(){
        echo '登录';
        echo '<br/>';
    }
    function  updatepwd(){
        echo '修改密码';
        echo '<br/>';
    }
    function my_level(){
        echo '我是普通用户';
        echo '<br/>';
    }
    function online_num(){
        echo '在线人数：'.self::$user_num;
        echo '<br/>';
    }
    function __destruct(){
       self::$user_num--;
        echo '<br/>结束<br/>';
    }
}